<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:85:"/www/wwwroot/jiedai.bianshenn.top/public/../application/index/view/loan/bystages.html";i:1553858437;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>我要分期</title>
    <link rel="stylesheet" href="/static/index/css/weui.css"/>
    <link rel="stylesheet" href="/static/index/css/example.css"/>
    <script src="/static/index/js/jquery-1.11.3.js"></script>
    <script src="/static/index/js/jquery.js"></script>
    <script src="/static/index/layer/layer.js"></script>
    <style>
        .bg{background: url('/static/index/img/loginbg.png')no-repeat;
            width: 100%;
            height: 40%;
            background-size: 100% 100%;
        }
        .weui-cells{
            margin-top:1.17647059em;
            line-height:1.47058824;
            font-size:17px;
            overflow:hidden;
            position:relative;
        }
        .register{
            font-size: 1rem;
        }
        .backg{
            background-image: url('/static/index/images/backg.png');
            background-size: 100% 100%;
        }
    </style>
</head>
<body ontouchstart class="backg">
<form action="bystagesadd" method="post" name="form1" enctype="multipart/form-data">
    <div style="width:90%;position:absolute;top: 7%;left: 50%;transform: translateX(-50%);" >
        <center><h1 class="page__title" style="text-align:center" >您的借款金额为</h1>
            <p class="page__desc" ><h2 style="color: red;">5,000.00元</h2></p></center>
        <div class="weui-cells" style="background-color: transparent;">
            <div class="weui-cell" >
                <div class="weui-cell__bd" >
                    <input  class="weui-input" maxlength="5" style="width: 90%;color: #757575;" type="text" name="pay" id="pay" placeholder="请输入贷款额度" value="">
                    <p class="page__desc" ><h5 style="color: #757575;">日利率0.05%</h5></p>
                </div>
            </div>

        </div>
        <div class="weui-cell weui-cell_select weui-cell_select-after">
            <div class="weui-cell__hd">
                <label for="" class="weui-label" style="background-color: transparent;">借款期数</label>
            </div>
            <div class="weui-cell__bd">
                <select class="weui-select"  name="bystages" id="bystages">
                    <option value="1" style="background-color: transparent;">1期</option>
                    <option value="2" style="background-color: transparent;">2期</option>
                    <option value="3" style="background-color: transparent;">3期</option>
                    <option value="4" style="background-color: transparent;">4期</option>
                    <option value="5" style="background-color: transparent;">5期</option>
                    <option value="6" style="background-color: transparent;">6期</option>
                    <option value="7" style="background-color: transparent;">7期</option>
                    <option value="8" style="background-color: transparent;">8期</option>
                    <option value="9" style="background-color: transparent;">9期</option>
                    <option value="10" style="background-color: transparent;">10期</option>
                    <option value="11" style="background-color: transparent;">11期</option>
                    <option value="12" style="background-color: transparent;">12期</option>


                </select>
            </div>
        </div>
        <div class="weui-cell weui-cell_select weui-cell_select-after">
            <div class="weui-cell__hd">
                <label for="" class="weui-label" style="background-color: transparent;">还款方式</label>
            </div>
            <div class="weui-cell__bd">
                <select class="weui-select"  name="repayment" id="repayment">
                    <option value="1" style="background-color: transparent;">微信</option>
                    <option value="2" style="background-color: transparent;">支付宝</option>
                    <option value="3" style="background-color: transparent;">银行卡转账</option>
                    <option value="4" style="background-color: transparent;">其他</option>
                </select>
            </div>
        </div>

        <div class="weui-cell weui-cell_select weui-cell_select-after">
            <div class="weui-cell__hd">
                <label for="" class="weui-label" style="background-color: transparent;">借款用途</label>
            </div>
            <div class="weui-cell__bd">
                <select class="weui-select" name="purpose" id="purpose">
                    <option value="1" style="background-color: transparent;">救急</option>
                    <option value="2" style="background-color: transparent;">自用</option>
                    <option value="3" style="background-color: transparent;">其他</option>
                </select>
            </div>
        </div>
        <div class="weui-cell weui-cell_select weui-cell_select-after">
            <div class="weui-cell__hd">
                <label for="" class="weui-label" style="background-color: transparent;">收款账户</label>
            </div>
            <div class="weui-cell__bd">
                <select class="weui-select" name="payee"  id="payee">
                    <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                    <option value="<?php echo $vo['id']; ?>" style="background-color: transparent;"><?php echo $vo['name']; ?></option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
            </div>
        </div>

        <br/>
        <br/>
        <a class="weui-btn weui-btn_primary" style="background: #265EC4;" id="showTooltips" onclick="loan()" >下一步</a>
    </div>
</form>
<div class="weui-tabbar">
    <a href="<?php echo url('index/index'); ?>" class="weui-tabbar__item weui-bar__item_on">
                    <span style="display: inline-block;position: relative;">
                        <img src="/static/index/img/home.png" alt="" class="weui-tabbar__icon">
                    </span>
        <p class="weui-tabbar__label">首页</p>
    </a>
    <a href="<?php echo url('user/user'); ?>" class="weui-tabbar__item">
        <img src="/static/index/img/user.png" alt="" class="weui-tabbar__icon">
        <p class="weui-tabbar__label">我</p>
    </a>
</div>
</body>
<script>
    function loan() {
        var pay  = $(" input[ name='pay' ] ").val();
        var bystages  = $(" input[ name='bystages' ] ").val();
        var repayment   = $(" input[ name='repayment' ] ").val();
        var payee  = $(" input[ name='payee' ] ").val();
        var purpose = $(" input[ name='purpose' ] ").val();
        if(pay == ''){layer.msg('请输入bystagesadd贷款额度');return false;}
        if(bystages == 0){layer.msg('请选择借款期数');return false;}
        if(repayment == 0){layer.msg('请选择借款用途');return false;}
        if(purpose == 0){layer.msg('请选择借款用途');return false;}
        if(payee == 0){layer.msg('请选择收款账户');return false;}
        document.form1.submit();

    }
</script>
<script src="/static/index/js/mui.min.js"></script>
<script>
    function plusReady(){
        var old_back = mui.back;
        mui.back = function() {
            //alert('不关闭')
        }
    }
    if(window.plus){
        plusReady();
    }else{
        document.addEventListener("plusready",plusReady,false);
    }
</script>
</html>